﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Admin_ManageJuanKuan.aspx.cs" Inherits="Master_Admin_ManageJuanKuan" %>
<%@ Register Assembly="DotNetTextBox" Namespace="DotNetTextBox" TagPrefix="DNTB" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="Css/Css.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="../Script/jquery.js"></script>
    <script type="text/javascript">
        function updateAccessCount(ChannelType,Id)
        {
            var txtAccessCount=document.getElementById("AccessCount_"+Id);
            var AccessCount=0;
            AccessCount=parseInt(txtAccessCount.value);
            var data="ChannelType="+ChannelType+"&Id="+Id+"&AccessCount="+AccessCount;
            var textStatus="";
            var method="Post";
            var Url="../AjaxXml/UpdateAccessCount.aspx?"+data;
		    $.ajax({
		        type: method,
		        url: Url,
		        beforeSend: function(XMLHttpRequest){
			        //alert("beforeSend");
		        },
		        success: function(data, textStatus){
		            if(data=="OK")
		            {
    		            alert("修改成功");
		            }
		            else if(data=="Error")
		            {
		                alert("修改失败");
		            }
		            window.location.href="Admin_ManageNetMu.aspx";
		        },
		        complete: function(XMLHttpRequest, textStatus){
			        //alert("complete");
		        },
		        error: function(){
			        //alert("error");
		        }
            });
		    
        }
    </script>
</head>
<body>
    <form id="Form1" runat="server">
    <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border" align="center">
        <tr>
            <td colspan="2" align="center" class="title">
                <strong>捐 款  管 理</strong>
            </td>
        </tr>
        <tr class="tdbg">
            <td width="70" height="30">
                <strong>管理导航：</strong>
            </td>
            <td height="30">
                <a href="Admin_ManageJuanKuan.aspx">所有捐款</a>
            </td>
        </tr>
    </table>
    <asp:Panel ID="palListAnnounce" runat="server">
        <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="border">
            <tr class="title">
                <td height="30" align="center">
                    捐助者
                </td>
                <td height="30" align="center">
                    类型 
                </td>
                <td height="30" align="center">
                    内容
                </td>
                <td height="30" align="center">
                    金额
                </td>
                <td height="30" align="center">
                    捐助类型
                </td>
                <td height="30" align="center">
                    捐助时间
                </td>
                <td height="30" align="center">
                    操作
                </td>
            </tr>
            <asp:Repeater ID="rptNetMuList" runat="server" 
                onitemcommand="rptNetMuList_ItemCommand" 
                onitemdatabound="rptNetMuList_ItemDataBound">
                <ItemTemplate>
                    <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#cccccc'" style="padding: 0px 2px;">
                        
                        <td height="30" align="center">
                            <%#Eval("TrueName")%>
                        </td>
                        <td height="30" align="center">
                            <%#GetChannel_Enum(Eval("ChannelId").ToString())%>
                        </td>
                        <td align="center">
                            <%#Eval("Readme")%>
                        </td>
                        <td align="center">
                            <%#Eval("Almsmoney")%>
                        </td>
                        <td align="center">
                            <%#GetAmsType(Eval("AmsType").ToString())%>
                        </td>
                        <td align="center">
                            <%#Eval("AddTime")%>
                        </td>
                        <td align="center">
                        <asp:HiddenField ID="hldPayType" value='<%#Eval("state") %>' runat="server" />
                        <asp:HiddenField ID="hldAmsType" value='<%#Eval("AmsType") %>' runat="server" />
                        <asp:LinkButton ID="lbtnPay" runat="server" CommandArgument='<%#Eval("ID") %>' CommandName="pay" Text="审核" />
                            <asp:LinkButton ID="btn_del" runat="server" CommandArgument='<%#Eval("ID") %>' CommandName="delete" OnClientClick="javascript:return confirm('是否真的删除,此操作将不可恢复!')">删除</asp:LinkButton>
                            
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    <asp:Panel ID="pl_nothing" runat="server" Visible="false">
                        <tr>
                            <td colspan="7">
                                暂无任何捐款信息
                            </td>
                        </tr>
                    </asp:Panel>
                </FooterTemplate>
            </asp:Repeater>
            <tr class="tdbg">
                <td colspan="7" height="25" align="right">
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged" CurrentPageButtonPosition="Beginning" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条" LayoutType="Table" NumericButtonTextFormatString="[{0}]" PageIndexBoxType="DropDownList" PageSize="15" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" UrlPaging="True" AlwaysShow="True">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
        </table>
    </asp:Panel>
    </form>
</body>
</html>